package com.sky.dto;

import com.sky.entity.SetmealDish;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(description = "套餐新增修改数据传输对象")
public class SetmealDTO implements Serializable {

    private Long id;

    //分类id
    @ApiModelProperty(value = "分类",required = true,example = "海鲜")
    private Long categoryId;

    //套餐名称
    @ApiModelProperty(value = "套餐名称",required = true,example = "海鲜大餐")
    private String name;

    //套餐价格
    @ApiModelProperty(value = "套餐价格",required = true,example = "12.00")
    private BigDecimal price;

    //状态 0:停用 1:启用
    private Integer status;

    //描述信息
    @ApiModelProperty(value = "描述信息",required = false,example = "好吃")
    private String description;

    //图片
    @ApiModelProperty(value = "图片",required = true,example = "www.baidu.com")
    private String image;

    //套餐菜品关系
    @ApiModelProperty(value = "套餐菜品关系",required = false)
    private List<SetmealDish> setmealDishes = new ArrayList<>();

}
